﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Http;
using System.Web.Mvc;

namespace HopeHealth.WebApp.Controllers.Api
{
    public class ArticleController : ApiController
    {
        //
        // GET: /Article/

        public string Post(string category, string title, string content, int creator)
        {
            if(new Domain.Services.ArticleService().Create(Guid.NewGuid(),
                category, title,
                content, creator))
            {
                return "{success:'true'}";
            }
            return "{success:'false'}";
        }

    }
}
